package com.zhixi.pattern.important.responsibilitychainpattern.operation;

/**
 * 父亲
 *
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/17 14:22
 */
public class Father extends Handler {

    /**
     * 父亲
     */
    public Father() {
        super(Handler.FATHER_LEVEL_REQUEST);
    }

    /**
     * 处理结果
     */
    @Override
    protected void response(Daughter daughter) {
        System.out.println("女儿向父亲请示");
        System.out.println(daughter.getRequest());
        System.out.println("父亲：同意");
    }

}
